﻿using System.Text;

namespace Tumblr.API.PostType
{
    public class Text : Common
    {
        private string _sTitle;
        private string _sBody;


        public string Title 
        {
            get 
            {
                return _sTitle; 
            }
            set 
            {
                _sTitle = System.Web.HttpUtility.UrlEncode(value, Encoding.UTF8); 
            }
        }
        public string Body 
        {
            get 
            {
                return _sBody; 
            }
            set 
            {
                string s = value.Replace("\r", "");
                s = s.Replace("\n", "");
                _sBody = System.Web.HttpUtility.UrlEncode(s, Encoding.UTF8);
            }
        }
    }
}